require("../../assets/css/reset.css");
require("../../assets/css/common.css");
require("../../assets/css/normalize.css");
require("./ad.css");

// 引入js模块
const { $ } = require("../../utils/dom.js");
// console.log(dom);

// 页面加载事件
document.addEventListener("DOMContentLoaded", function () {
	// 倒计时
	let num = 5;
	setInterval(function () {
		num--;
		console.log(num);
		$(".box-a").textContent = `${num}s`;
		if (num === 0) {
			location.href = "./index.html";
		}
	}, 1000);
});
